#pragma once
#include <vector>
#include "Entity.h"


using namespace std;
class Tank : public Entity
{
protected:
	vector<short> m_ObjectsBody;
	vector<short> m_ObjectsGuns;
	vector<short> m_ObjectsHead;

	int hasRotateBody = 0;
	
public:
	bool isShooting = false;
	bool isMoveLeft = false;
	Vector3 target;
	Vector3 targetShot;
	Vector3 rotateAngleGun;
	Vector3 gunPositon;
	Tank();
	Tank(char* filename);
	~Tank();

	

	// virtual
	void draw();
	void update(float deltatime);

	void MoveForward(float speed);
	void MoveBackward(float speed);
	void MoveLeft(float speed);
	void MoveRight(float speed);
	void RotateLeft(float offset);
	void RotateRight(float offset);
	void RotateUp(float offset);
	void RotateDown(float offset);
};

